<div id="main_content">
<table class="table" cellspacing="0" cellpadding="4" border="0">
    <tr>
        <th><?=lang('page_id')?></th>
        <th><?=lang('page_title')?></th>
        <th><?=lang('page_uri')?></th>
        <th><?=lang('actions')?></th>
    <tr>
    <?php foreach($all_pages as $row): ?>
    <tr>
        <td><?=$row['pag_id'] ?></td>
        <td><?=$row['pag_title'] ?></td>
        <td><?=$row['pag_uri'] ?></td>
        <td>
        <?=modul_anchor('modul/page/edit/'.$row['pag_id'], image('images/icons/document__pencil.png'));?>
        <?=modalboxquestion ('modul/page/delete/'.$row['pag_id'], image('images/icons/cross.png'), lang('del_page').' - '.$row['pag_title'])?>
        </td>
    </tr>
    <?php endforeach; ?>
</table>
<?=$pagination->render()?> 
<?=modul_anchor('modul/page/add', lang('create_page'), array('class' => 'add'));?>
</div>